﻿using Cmp.Web.Common;
using Cmp.Web.IRepository;
using Cmp.Web.IService;
using Cmp.Web.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cmp.Web.Service
{
    /// <summary>
    /// 住院信息接口
    /// </summary>
    public class InHospitalService : IInHospitalService
    {
        private readonly IInHospitalProvide inhospitalProvide;
        public InHospitalService(IInHospitalProvide inHospital) { 
        inhospitalProvide= inHospital;
        }
        public Task<List<InHospitalPayInfo>> GetHospitalPayInfoList(string InHospitalNumber, string PatientId, string PayTime, out ExceptionAll exception)
        {
            return inhospitalProvide.GetHospitalPayInfoList(InHospitalNumber, PatientId, PayTime, out exception); ;
        }

        public Task<List<PayorInHospitalPayInfo>> GetHospitalPayInfoList(string InHospitalNumber, string PatientId, string PayTime, string ItemType, out ExceptionAll exception)
        {
            return inhospitalProvide.GetHospitalPayInfoList(InHospitalNumber, PatientId, PayTime, ItemType, out exception); ;
        }

        public Task<bool> InHospitalPayment(InHospitalPayInfo inHospitalPay, out ExceptionAll exception)
        {
            return inhospitalProvide.InHospitalPayment(inHospitalPay, out exception);
        }
    }
}
